3.12 \(\int \frac {(a+b \tanh ^{-1}(c x))^2}{d+e x} \, dx\)

Optimal. Leaf size=188 \[ -\frac {b \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (c x+1)}\right )}{e}+\frac {\left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c x+1) (c d+e)}\right )}{e}+\frac {b \text {Li}_2\left (1-\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{e}-\frac {\log \left (\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2}{e}-\frac {b^2 \text {Li}_3\left (1-\frac {2 c (d+e x)}{(c d+e) (c x+1)}\right )}{2 e}+\frac {b^2 \text {Li}_3\left (1-\frac {2}{c x+1}\right )}{2 e} \]

[Out]

-(a+b*arctanh(c*x))^2*ln(2/(c*x+1))/e+(a+b*arctanh(c*x))^2*ln(2*c*(e*x+d)/(c*d+e)/(c*x+1))/e+b*(a+b*arctanh(c*
x))*polylog(2,1-2/(c*x+1))/e-b*(a+b*arctanh(c*x))*polylog(2,1-2*c*(e*x+d)/(c*d+e)/(c*x+1))/e+1/2*b^2*polylog(3
,1-2/(c*x+1))/e-1/2*b^2*polylog(3,1-2*c*(e*x+d)/(c*d+e)/(c*x+1))/e

________________________________________________________________________________________

Rubi [A]  time = 0.05, antiderivative size = 188, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.056, Rules used = {5922} \[ -\frac {b \left (a+b \tanh ^{-1}(c x)\right ) \text {PolyLog}\left (2,1-\frac {2 c (d+e x)}{(c x+1) (c d+e)}\right )}{e}+\frac {b \text {PolyLog}\left (2,1-\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )}{e}-\frac {b^2 \text {PolyLog}\left (3,1-\frac {2 c (d+e x)}{(c x+1) (c d+e)}\right )}{2 e}+\frac {b^2 \text {PolyLog}\left (3,1-\frac {2}{c x+1}\right )}{2 e}+\frac {\left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c x+1) (c d+e)}\right )}{e}-\frac {\log \left (\frac {2}{c x+1}\right ) \left (a+b \tanh ^{-1}(c x)\right )^2}{e} \]

Antiderivative was successfully verified.

[In]

Int[(a + b*ArcTanh[c*x])^2/(d + e*x),x]

[Out]

-(((a + b*ArcTanh[c*x])^2*Log[2/(1 + c*x)])/e) + ((a + b*ArcTanh[c*x])^2*Log[(2*c*(d + e*x))/((c*d + e)*(1 + c
*x))])/e + (b*(a + b*ArcTanh[c*x])*PolyLog[2, 1 - 2/(1 + c*x)])/e - (b*(a + b*ArcTanh[c*x])*PolyLog[2, 1 - (2*
c*(d + e*x))/((c*d + e)*(1 + c*x))])/e + (b^2*PolyLog[3, 1 - 2/(1 + c*x)])/(2*e) - (b^2*PolyLog[3, 1 - (2*c*(d
 + e*x))/((c*d + e)*(1 + c*x))])/(2*e)

Rule 5922

Int[((a_.) + ArcTanh[(c_.)*(x_)]*(b_.))^2/((d_) + (e_.)*(x_)), x_Symbol] :> -Simp[((a + b*ArcTanh[c*x])^2*Log[
2/(1 + c*x)])/e, x] + (Simp[((a + b*ArcTanh[c*x])^2*Log[(2*c*(d + e*x))/((c*d + e)*(1 + c*x))])/e, x] + Simp[(
b*(a + b*ArcTanh[c*x])*PolyLog[2, 1 - 2/(1 + c*x)])/e, x] - Simp[(b*(a + b*ArcTanh[c*x])*PolyLog[2, 1 - (2*c*(
d + e*x))/((c*d + e)*(1 + c*x))])/e, x] + Simp[(b^2*PolyLog[3, 1 - 2/(1 + c*x)])/(2*e), x] - Simp[(b^2*PolyLog
[3, 1 - (2*c*(d + e*x))/((c*d + e)*(1 + c*x))])/(2*e), x]) /; FreeQ[{a, b, c, d, e}, x] && NeQ[c^2*d^2 - e^2,
0]

Rubi steps

\begin {align*} \int \frac {\left (a+b \tanh ^{-1}(c x)\right )^2}{d+e x} \, dx &=-\frac {\left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2}{1+c x}\right )}{e}+\frac {\left (a+b \tanh ^{-1}(c x)\right )^2 \log \left (\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{e}+\frac {b \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2}{1+c x}\right )}{e}-\frac {b \left (a+b \tanh ^{-1}(c x)\right ) \text {Li}_2\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{e}+\frac {b^2 \text {Li}_3\left (1-\frac {2}{1+c x}\right )}{2 e}-\frac {b^2 \text {Li}_3\left (1-\frac {2 c (d+e x)}{(c d+e) (1+c x)}\right )}{2 e}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C]  time = 10.61, size = 759, normalized size = 4.04 \[ \frac {6 a^2 \log (d+e x)-6 i a b \left (-\log \left (\frac {2}{\sqrt {1-c^2 x^2}}\right ) \left (\pi -2 i \tanh ^{-1}(c x)\right )-i \text {Li}_2\left (e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )+i \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )^2+2 i \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right ) \log \left (1-e^{-2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}\right )-2 i \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right ) \log \left (2 i \sinh \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )\right )-i \text {Li}_2\left (-e^{2 \tanh ^{-1}(c x)}\right )-\frac {1}{4} i \left (\pi -2 i \tanh ^{-1}(c x)\right )^2+\left (\pi -2 i \tanh ^{-1}(c x)\right ) \log \left (e^{2 \tanh ^{-1}(c x)}+1\right )\right )+6 a b \tanh ^{-1}(c x) \left (\log \left (1-c^2 x^2\right )+2 \log \left (i \sinh \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )\right )\right )+\frac {b^2 \left (-4 e \sqrt {1-\frac {c^2 d^2}{e^2}} \tanh ^{-1}(c x)^3 e^{-\tanh ^{-1}\left (\frac {c d}{e}\right )}-6 c d \tanh ^{-1}(c x)^2 \log \left (\frac {c (d+e x)}{\sqrt {1-c^2 x^2}}\right )-3 i \pi c d \log \left (1-c^2 x^2\right ) \tanh ^{-1}(c x)+12 c d \tanh ^{-1}(c x) \text {Li}_2\left (-e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )+12 c d \tanh ^{-1}(c x) \text {Li}_2\left (e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )-12 c d \text {Li}_3\left (-e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )-12 c d \text {Li}_3\left (e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )+6 c d \tanh ^{-1}(c x)^2 \log \left (1-e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}\right )+6 c d \tanh ^{-1}(c x)^2 \log \left (e^{\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)}+1\right )+6 c d \tanh ^{-1}(c x)^2 \log \left (\frac {1}{2} e^{-\tanh ^{-1}(c x)} \left (c d \left (e^{2 \tanh ^{-1}(c x)}+1\right )+e \left (e^{2 \tanh ^{-1}(c x)}-1\right )\right )\right )+12 c d \tanh ^{-1}(c x) \tanh ^{-1}\left (\frac {c d}{e}\right ) \log \left (\frac {1}{2} i e^{-\tanh ^{-1}\left (\frac {c d}{e}\right )-\tanh ^{-1}(c x)} \left (e^{2 \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )}-1\right )\right )-12 c d \tanh ^{-1}(c x) \tanh ^{-1}\left (\frac {c d}{e}\right ) \log \left (i \sinh \left (\tanh ^{-1}\left (\frac {c d}{e}\right )+\tanh ^{-1}(c x)\right )\right )+6 c d \tanh ^{-1}(c x) \text {Li}_2\left (-e^{-2 \tanh ^{-1}(c x)}\right )+3 c d \text {Li}_3\left (-e^{-2 \tanh ^{-1}(c x)}\right )-8 c d \tanh ^{-1}(c x)^3-6 c d \tanh ^{-1}(c x)^2 \log \left (e^{-2 \tanh ^{-1}(c x)}+1\right )-6 i \pi c d \tanh ^{-1}(c x) \log \left (\frac {1}{2} \left (e^{-\tanh ^{-1}(c x)}+e^{\tanh ^{-1}(c x)}\right )\right )+4 e \tanh ^{-1}(c x)^3\right )}{c d}}{6 e} \]

Warning: Unable to verify antiderivative.

[In]

Integrate[(a + b*ArcTanh[c*x])^2/(d + e*x),x]

[Out]

(6*a^2*Log[d + e*x] + 6*a*b*ArcTanh[c*x]*(Log[1 - c^2*x^2] + 2*Log[I*Sinh[ArcTanh[(c*d)/e] + ArcTanh[c*x]]]) -
 (6*I)*a*b*((-1/4*I)*(Pi - (2*I)*ArcTanh[c*x])^2 + I*(ArcTanh[(c*d)/e] + ArcTanh[c*x])^2 + (Pi - (2*I)*ArcTanh
[c*x])*Log[1 + E^(2*ArcTanh[c*x])] + (2*I)*(ArcTanh[(c*d)/e] + ArcTanh[c*x])*Log[1 - E^(-2*(ArcTanh[(c*d)/e] +
 ArcTanh[c*x]))] - (Pi - (2*I)*ArcTanh[c*x])*Log[2/Sqrt[1 - c^2*x^2]] - (2*I)*(ArcTanh[(c*d)/e] + ArcTanh[c*x]
)*Log[(2*I)*Sinh[ArcTanh[(c*d)/e] + ArcTanh[c*x]]] - I*PolyLog[2, -E^(2*ArcTanh[c*x])] - I*PolyLog[2, E^(-2*(A
rcTanh[(c*d)/e] + ArcTanh[c*x]))]) + (b^2*(-8*c*d*ArcTanh[c*x]^3 + 4*e*ArcTanh[c*x]^3 - (4*Sqrt[1 - (c^2*d^2)/
e^2]*e*ArcTanh[c*x]^3)/E^ArcTanh[(c*d)/e] - 6*c*d*ArcTanh[c*x]^2*Log[1 + E^(-2*ArcTanh[c*x])] - (6*I)*c*d*Pi*A
rcTanh[c*x]*Log[(E^(-ArcTanh[c*x]) + E^ArcTanh[c*x])/2] + 6*c*d*ArcTanh[c*x]^2*Log[1 - E^(ArcTanh[(c*d)/e] + A
rcTanh[c*x])] + 6*c*d*ArcTanh[c*x]^2*Log[1 + E^(ArcTanh[(c*d)/e] + ArcTanh[c*x])] + 12*c*d*ArcTanh[(c*d)/e]*Ar
cTanh[c*x]*Log[(I/2)*E^(-ArcTanh[(c*d)/e] - ArcTanh[c*x])*(-1 + E^(2*(ArcTanh[(c*d)/e] + ArcTanh[c*x])))] + 6*
c*d*ArcTanh[c*x]^2*Log[(e*(-1 + E^(2*ArcTanh[c*x])) + c*d*(1 + E^(2*ArcTanh[c*x])))/(2*E^ArcTanh[c*x])] - 6*c*
d*ArcTanh[c*x]^2*Log[(c*(d + e*x))/Sqrt[1 - c^2*x^2]] - (3*I)*c*d*Pi*ArcTanh[c*x]*Log[1 - c^2*x^2] - 12*c*d*Ar
cTanh[(c*d)/e]*ArcTanh[c*x]*Log[I*Sinh[ArcTanh[(c*d)/e] + ArcTanh[c*x]]] + 6*c*d*ArcTanh[c*x]*PolyLog[2, -E^(-
2*ArcTanh[c*x])] + 12*c*d*ArcTanh[c*x]*PolyLog[2, -E^(ArcTanh[(c*d)/e] + ArcTanh[c*x])] + 12*c*d*ArcTanh[c*x]*
PolyLog[2, E^(ArcTanh[(c*d)/e] + ArcTanh[c*x])] + 3*c*d*PolyLog[3, -E^(-2*ArcTanh[c*x])] - 12*c*d*PolyLog[3, -
E^(ArcTanh[(c*d)/e] + ArcTanh[c*x])] - 12*c*d*PolyLog[3, E^(ArcTanh[(c*d)/e] + ArcTanh[c*x])]))/(c*d))/(6*e)

________________________________________________________________________________________

fricas [F]  time = 0.55, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {b^{2} \operatorname {artanh}\left (c x\right )^{2} + 2 \, a b \operatorname {artanh}\left (c x\right ) + a^{2}}{e x + d}, x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x))^2/(e*x+d),x, algorithm="fricas")

[Out]

integral((b^2*arctanh(c*x)^2 + 2*a*b*arctanh(c*x) + a^2)/(e*x + d), x)

________________________________________________________________________________________

giac [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {{\left (b \operatorname {artanh}\left (c x\right ) + a\right )}^{2}}{e x + d}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x))^2/(e*x+d),x, algorithm="giac")

[Out]

integrate((b*arctanh(c*x) + a)^2/(e*x + d), x)

________________________________________________________________________________________

maple [C]  time = 0.74, size = 1170, normalized size = 6.22 \[ \text {result too large to display} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*arctanh(c*x))^2/(e*x+d),x)

[Out]

a^2*ln(c*e*x+c*d)/e+b^2*ln(c*e*x+c*d)/e*arctanh(c*x)^2-b^2/e*arctanh(c*x)^2*ln(((c*x+1)^2/(-c^2*x^2+1)-1)*e+c*
d*(1+(c*x+1)^2/(-c^2*x^2+1)))-1/2*I*b^2/e*arctanh(c*x)^2*Pi*csgn(I*(((c*x+1)^2/(-c^2*x^2+1)-1)*e+c*d*(1+(c*x+1
)^2/(-c^2*x^2+1)))/(1+(c*x+1)^2/(-c^2*x^2+1)))^2*csgn(I*(((c*x+1)^2/(-c^2*x^2+1)-1)*e+c*d*(1+(c*x+1)^2/(-c^2*x
^2+1))))-1/2*I*b^2/e*arctanh(c*x)^2*Pi*csgn(I/(1+(c*x+1)^2/(-c^2*x^2+1)))*csgn(I*(((c*x+1)^2/(-c^2*x^2+1)-1)*e
+c*d*(1+(c*x+1)^2/(-c^2*x^2+1)))/(1+(c*x+1)^2/(-c^2*x^2+1)))^2+1/2*I*b^2/e*arctanh(c*x)^2*Pi*csgn(I*(((c*x+1)^
2/(-c^2*x^2+1)-1)*e+c*d*(1+(c*x+1)^2/(-c^2*x^2+1)))/(1+(c*x+1)^2/(-c^2*x^2+1)))^3+1/2*I*b^2/e*arctanh(c*x)^2*P
i*csgn(I/(1+(c*x+1)^2/(-c^2*x^2+1)))*csgn(I*(((c*x+1)^2/(-c^2*x^2+1)-1)*e+c*d*(1+(c*x+1)^2/(-c^2*x^2+1)))/(1+(
c*x+1)^2/(-c^2*x^2+1)))*csgn(I*(((c*x+1)^2/(-c^2*x^2+1)-1)*e+c*d*(1+(c*x+1)^2/(-c^2*x^2+1))))-b^2/e*arctanh(c*
x)*polylog(2,-(c*x+1)^2/(-c^2*x^2+1))+1/2*b^2/e*polylog(3,-(c*x+1)^2/(-c^2*x^2+1))+b^2/(c*d+e)*arctanh(c*x)^2*
ln(1-(c*d+e)*(c*x+1)^2/(-c^2*x^2+1)/(-c*d+e))+b^2/(c*d+e)*arctanh(c*x)*polylog(2,(c*d+e)*(c*x+1)^2/(-c^2*x^2+1
)/(-c*d+e))-1/2*b^2/(c*d+e)*polylog(3,(c*d+e)*(c*x+1)^2/(-c^2*x^2+1)/(-c*d+e))+c*b^2/e*d/(c*d+e)*arctanh(c*x)^
2*ln(1-(c*d+e)*(c*x+1)^2/(-c^2*x^2+1)/(-c*d+e))+c*b^2/e*d/(c*d+e)*arctanh(c*x)*polylog(2,(c*d+e)*(c*x+1)^2/(-c
^2*x^2+1)/(-c*d+e))-1/2*c*b^2/e*d/(c*d+e)*polylog(3,(c*d+e)*(c*x+1)^2/(-c^2*x^2+1)/(-c*d+e))+2*a*b*ln(c*e*x+c*
d)/e*arctanh(c*x)+a*b/e*ln(c*e*x+c*d)*ln((c*e*x-e)/(-c*d-e))+a*b/e*dilog((c*e*x-e)/(-c*d-e))-a*b/e*ln(c*e*x+c*
d)*ln((c*e*x+e)/(-c*d+e))-a*b/e*dilog((c*e*x+e)/(-c*d+e))

________________________________________________________________________________________

maxima [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \frac {a^{2} \log \left (e x + d\right )}{e} + \int \frac {b^{2} {\left (\log \left (c x + 1\right ) - \log \left (-c x + 1\right )\right )}^{2}}{4 \, {\left (e x + d\right )}} + \frac {a b {\left (\log \left (c x + 1\right ) - \log \left (-c x + 1\right )\right )}}{e x + d}\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*arctanh(c*x))^2/(e*x+d),x, algorithm="maxima")

[Out]

a^2*log(e*x + d)/e + integrate(1/4*b^2*(log(c*x + 1) - log(-c*x + 1))^2/(e*x + d) + a*b*(log(c*x + 1) - log(-c
*x + 1))/(e*x + d), x)

________________________________________________________________________________________

mupad [F]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {{\left (a+b\,\mathrm {atanh}\left (c\,x\right )\right )}^2}{d+e\,x} \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + b*atanh(c*x))^2/(d + e*x),x)

[Out]

int((a + b*atanh(c*x))^2/(d + e*x), x)

________________________________________________________________________________________

sympy [F]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\left (a + b \operatorname {atanh}{\left (c x \right )}\right )^{2}}{d + e x}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*atanh(c*x))**2/(e*x+d),x)

[Out]

Integral((a + b*atanh(c*x))**2/(d + e*x), x)

________________________________________________________________________________________